﻿@model ADShop.Models.FirstOrderProduct

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>FirstOrderProduct</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDOrderProduct)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDOrderProduct)
            @Html.ValidationMessageFor(model => model.IDOrderProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDUsers)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.IDUsers, (IEnumerable<SelectListItem>)ViewBag.IDUser)
            @Html.ValidationMessageFor(model => model.IDUsers)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TotalPriceOrder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TotalPriceOrder)
            @Html.ValidationMessageFor(model => model.TotalPriceOrder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Save" class="btn btn-green" />
        </p>
    </fieldset>
}

<div>
    <p>
        @Html.ActionLink("Bảng Danh Sách Đơn Hàng", "Index", null, new { @class = "label label-default" })
    </p>
</div>

